/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fontmanager;

import application.CoreView;
import application.ViewManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
/**
 *
 * @author masdos
 */
public class MenuFormat implements ActionListener{
    
    private static final MenuFormat instance = new MenuFormat();
    
    public static MenuFormat getInstance(){
        return instance;
    }
    
    public JMenu addMenuFormat(){
        JMenu formatMenu = new JMenu("Format");
        JMenuItem item = new JMenuItem("Format");
        item.setActionCommand("format");
        item.setToolTipText("Modifier le format du text");
        item.addActionListener(this);
        formatMenu.add(item);
        return formatMenu;
    }
    
    @Override
    public void actionPerformed(ActionEvent e) {
        if(e.getActionCommand().equals("format")){
            
        }
    }
}
